package com;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("输入一下数字其中一个{19,28,37,46,50}");
        int index = in.nextInt();
        int[] arr = {19, 28, 37, 46, 50};
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] == index) {
                System.out.println("索引值为" + i);
                break;
            }
        }
    }
        }